﻿@using Topro.Entity.Response.WarehouseUnit

@model Topro.Entity.PagedList<WarehouseUnitQueryResponse>

<div class="data-body data-scroll">
    <div class="data-view">
        <div class="data-div-view table-responsive">
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th class="t_c wd40"></th>
                        <th class="t_c" width="75">排</th>
                        <th class="t_c" width="75">列</th>
                        <th class="t_c" width="75">层</th>
                        <th class="t_c" width="75">方位</th>
                        <th class="t_c">备注</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.TData != null && Model.TData.Any())
                    {
                        foreach (var item in (List<Topro.Entity.Response.WarehouseUnit.WarehouseUnitQueryResponse>)Model.TData)
                        {
                    <tr>
                        <td class="t_c"><input type="radio" name="warehouseUnitId" value="@(item.Id)" data-coordinate="@(item.Pai)-@(item.Lie)-@(item.Ceng)"></td>
                        <td class="t_c">@(item.Pai.ToString("00"))</td>
                        <td class="t_c">@(item.Lie.ToString("00"))</td>
                        <td class="t_c">@(item.Ceng.ToString("00"))</td>
                        <td class="t_c">@(item.Fix.ToString("00"))</td>
                        <td class="t_c">@(item.Remark)</td>
                    </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td colspan="6" class="t_c">暂无记录</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- 必要的分页参数设置 -->
<input type="hidden" id="TotalCount" value="@(Model != null ? Model.TotalCount : 0)" />